import {defineStore} from "pinia";
import {ref} from "vue";

export const useApiCacheStore = defineStore('apiCache', () => {
    let apiCacheDataList = ref([]);
    let apiCacheSearchData = ref({});

    function resetApiCacheDataList(info) {
        apiCacheDataList.value = info;
    }

    function resetApiCacheSearchData(info) {
        apiCacheSearchData.value = info;
    }

    return { apiCacheDataList, resetApiCacheDataList, apiCacheSearchData, resetApiCacheSearchData }
})